if dir not exist mkdir python

36

if dir not exist mkdir python -

import os
if not os.path.exists('my_folder'):
    os.makedirs('my_folder')

Comments

Submit
0 Comments